"""
@Author : 合肥一元数智教育科技有限公司
@Date :  2025/3/6 10:25
@Description :  读取csv格式文件

"""
import csv
'''
with open('dir01/student_info.csv', 'r',encoding='utf-8') as f:
     reader = csv.reader(f)
     for index, row in enumerate(reader):
         if index != 0:
            print(row,type(row))
'''
with open('dir01/student_info.csv', 'r', encoding='utf-8') as f:
       dictReader =  csv.DictReader(f)
       for row in dictReader:
           print(row,type(row))



